package exam;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Cities {
    public static void main(String[] args) {
        Map<String, List<String>> cityToProvince = new HashMap<>();

        List<String> zhejiangProvince = new ArrayList<String>();
        zhejiangProvince.add("绍兴市");
        zhejiangProvince.add("温州市");
        zhejiangProvince.add("湖州市");
        zhejiangProvince.add("嘉兴市");
        zhejiangProvince.add("台州市");
        zhejiangProvince.add("金华市");
        zhejiangProvince.add("舟山市");
        zhejiangProvince.add("衢州市");
        zhejiangProvince.add("丽水市");

        List<String> hainanProvince = new ArrayList<String>();
        hainanProvince.add("海口市");
        hainanProvince.add("三亚市");

        List<String> beijingShi = new ArrayList<String>();
        beijingShi.add("北京市");

        cityToProvince.put("浙江省",zhejiangProvince);
        cityToProvince.put("海南省",hainanProvince);
        cityToProvince.put("北京市",beijingShi);

        System.out.println("cityToProvince = " + cityToProvince);
    }
}
